const routes = [
  { // 登录
    path: '/',
    name: 'login',
    component: () => import(/* webpackChunkName: "login" */  '../views/login/index'),
  },
  {
    path: '/layout',
    name: 'layout',
    component: () => import(/* webpackChunkName: "layout" */  '../views/body/layout.vue'),
    mate: {title: '首页',path: 'home'},
    redirect: 'home',
    children: [
      {
        path: 'home',
        name: 'home',
        component: () => import(/* webpackChunkName: "home" */  '../views/body/home'),
        meta: {title: '首页',path: 'home'},
      },
      {
        path: 'userList',
        name: 'userList',
        component: () => import(/* webpackChunkName: "home" */  '../views/body/userList'),
        meta: {title: '用户列表',path: 'userList'},
      },
      
    ]
  },





];
export default routes
